<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::post('/user/login', [\App\Http\Controllers\UserController::class, 'login']);
Route::post('/user/vote', [\App\Http\Controllers\UserController::class, 'vote']);
Route::post('/user/bind', [\App\Http\Controllers\UserController::class, 'bind']);
Route::get('/video/list', [\App\Http\Controllers\VideoController::class, 'list']);
Route::post('/excel/login', [\App\Http\Controllers\ExcelController::class, 'loginWithPassword']);
Route::post('/excel/diff', [\App\Http\Controllers\ExcelController::class, 'uploadExcel']);
Route::post('/excel/upload', [\App\Http\Controllers\ExcelController::class, 'upload']);
Route::get('/excel/checkLogin', [\App\Http\Controllers\ExcelController::class, 'checkLogin']);
Route::get('/excel/list', [\App\Http\Controllers\ExcelController::class, 'excelList']);


